package com.example.admin.service;

import com.example.xo.pojo.Blog;
import com.example.xo.vo.BlogVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface BlogService {
    boolean add(Blog blog);
    boolean deleteById(String id);
    boolean update(Blog blog);

    List<Blog> findAllBlog();
    List<BlogVO> findAll();
    BlogVO findById(String id);
    Blog findBlogById(String id);

    BlogVO findByTitle(String name);
}
